<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head>
    <th:block th:include="include :: header('修改入库作业明细')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-jobDetail-edit" th:object="${jobDetail}">
            <input id="jobDetailId" name="jobDetailId" th:field="*{jobDetailId}"  type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">作业id：</label>
                <div class="col-sm-8">
                    <input id="jobId" name="jobId" th:field="*{jobId}" class="form-control" type="text" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label" >库存ID：</label>
                <div class="col-sm-8">
                    <input id="stockId" name="stockId" th:field="*{stockId}" class="form-control" type="text" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label" >流水号：</label>
                <div class="col-sm-8">
                    <input id="productDetailId" name="productDetailId" readonly="readonly" th:field="*{productDetailId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">批号：</label>
                <div class="col-sm-8">
                    <input id="lotNo" name="lotNo" th:field="*{lotNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">日期：</label>
                <div class="col-sm-8">
                    <input id="inDate" name="inDate" th:field="*{inDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">出入库表单id：</label>
                <div class="col-sm-8">
                    <input id="inOrOutId" name="inOrOutId" th:field="*{inOrOutId}" class="form-control" type="text" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">出入库明细id：</label>
                <div class="col-sm-8">
                    <input id="inOrOutDId" name="inOrOutDId" th:field="*{inOrOutDId}" class="form-control" type="text" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">物品guid：</label>
                <div class="col-sm-8">
                    <input id="productGuid" name="productGuid" th:field="*{productGuid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">物资id：</label>
                <div class="col-sm-8">
                    <input id="productId" name="productId" th:field="*{productId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">物品状态：</label>
                <div class="col-sm-8">
                    <input id="productStatus" name="productStatus" th:field="*{productStatus}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">入库层数：</label>
                <div class="col-sm-8">
                    <input id="inLayerQuantity" name="inLayerQuantity" th:field="*{inLayerQuantity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">入库数量：</label>
                <div class="col-sm-8">
                    <input id="in_quantity" name="in_quantity" th:field="*{inQuantity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">回流数量：</label>
                <div class="col-sm-8">
                    <input id="giveNum" name="giveNum" th:field="*{giveNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">库存层数：</label>
                <div class="col-sm-8">
                    <input id="layerQuantity" name="layerQuantity" th:field="*{layerQuantity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">出库层数：</label>
                <div class="col-sm-8">
                    <input id="outLayerQuantity" name="outLayerQuantity" th:field="*{outLayerQuantity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">出库层：</label>
                <div class="col-sm-8">
                    <input id="outLayer" name="outLayer" th:field="*{outLayer}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">入库单主表id：</label>
                <div class="col-sm-8">
                    <input id="stockinId" name="stockinId" th:field="*{stockinId}" class="form-control" type="text" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">出口id：</label>
                <div class="col-sm-8">
                    <input id="exitId" name="exitId" th:field="*{exitId}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "mydo/jobdetail"

        function submitHandler() {
            var data = $("#form-jobDetail-edit").serializeArray();
            console.log(data)
            //TODO 如果沒有选择项目组（项目组为空 不允许提交）
            $.operate.save(prefix + "/edit", data);
        }
	</script>
</body>
</html>
